import React from 'react';
import LottieView from 'lottie-react-native';
import { View,StyleSheet,Text, Animated, Easing } from "react-native";

export default class horn extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            progress: new Animated.Value(0),
            statusTab:false,
        };
    }

    componentDidMount() {
        Animated.timing(this.state.progress, {
            toValue: 1,
            duration: 300,
            easing: Easing.linear,
        }).start();

    }
    render() {
        return (
            <View style={ styles.container }>
                <LottieView
                    style={{height:20,width:20}}
                    autoPlay={true}
                    progress={this.state.progress}
                    source={require('../../res/Animate/audio')}
                />
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container:{
        flex:1,
        justifyContent: 'center',
        alignItems: 'center',
    }
});